<%-- 
    Document   : index
    Created on : Apr 26, 2013, 2:26:11 PM
    Author     : Jung Jin Hyuk
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="display" uri="http://displaytag.sf.net" %>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link rel="shortcut icon" href="resources/images/icon-viec-lam.ico" />	
        <link type="text/css" rel="stylesheet" href="resources/style/style.css">
        <link type="text/css" rel="stylesheet" href="resources/style/tableDisplay.css">
        <title>Recruitment Process System</title>
    </head>
    <body>

        <!-- begin header-->
        <div id="header">
            <!-- begin top header-->
            <div id="line_top">
                <div class="container">                   
                    <p class="sovl">The number of jobs:<strong>7299</strong></p>
                     <c:set value="${username}" var="userName"></c:set>
                    <c:if test="${empty userName}">
                        <p class="submenu"><a href="#">Contact</a> | <a href="loginServlets">Sign in</a> | <a href="account">Sign up</a></p>
                    </c:if>    
                        <c:if test="${not empty userName}">
                        <p class="submenu">Welcome ${userName.account} | <a href="LogoutServlet">Log Out</a> | <a href="#">Contact</a>  </p>
                    </c:if>     
                </div>
            </div>
            <div id="top_header">
                <div class="container">
                    <img class="logo" src="resources/images/logo.jpg" />
                    <img class="adv" src="resources/images/banner1.jpg" />
                </div>
            </div>
            <!-- begin menu top-->
            <div id="nav">
                <div class="container">
                    <img class="home" src="resources/images/home.jpg" />
                    <ul>
                        <li ><a href="#">Home page</a></li>
                        <li><a href="#">Candidates</a></li> <!--Người tìm việc--->
                        <li><a href="#">Recruiters</a></li><!--Nhà tuyển dụng--->
                        <li><a href="#">Personnel supply</a></li><!--Cung ứng nhân sự--->
                    </ul>

                </div>
            </div>
        </div>
        <hr style="width: 1200px"/>

        <!-- begin content page-->
        <div id="content">
            <div class="container">
               
                <!-- begin slide news-->
                <div id="slide_news">
                    <div class="sn_col">
                        <h2>Category</h2>
                        <div class="col_content">
                            <a href="#"><img src="resources/images/tailieu.jpg" /></a>
                            <p>For many young people, the biggest challenge facing the job interview ...</p>
                        </div>
                    </div>
                    <div class="sn_col">
                        <h2>Create Profile</h2>
                        <div class="col_content">
                            <a href="CreateProfile"><img src="resources/images/hoso.jpg" /></a>
                            <p>For many young people, the biggest challenge facing the job interview ...</p>
                        </div>
                    </div>
                    <div class="sn_col">
                        <h2>Work Informations</h2>
                        <div class="col_content">
                            <a href="CreateVacancy"><img src="resources/images/thongtin.jpg" /></a>
                            <p>For many young people, the biggest challenge facing the job interview ...</p>
                        </div>
                    </div>
                    <div class="sn_col">
                        <h2>Job Search Diary</h2>
                        <div class="col_content">
                            <a href="#"><img src="resources/images/nhatky.jpg" /></a>
                            <p>For many young people, the biggest challenge facing the job interview ...</p>
                        </div>
                    </div>
                </div>
                <div class="clear"></div>
                <hr style="width: 1200px"/>
                <!-- begin viec lam-->
                <div id="work">
                    <div CLASS="work1_top">
                        <h3> Search a job</h3>
                        <form action="SearchWork" method="POST">
                            <div class="search">
                                <select name="sCity" class="selectSearch">
                                    <option value="none">Choose Province/City</option><!-- Chọn Tỉnh Thành Phố-->
                                    <c:forEach items="${listWP}" var="wp">
                                        <option value="${wp.workplaceId}">${wp.workplaceName}</option>
                                    </c:forEach>                           
                                </select>
                                <select name="sCategory" class="selectSearch">
                                    <option value="none">Choose a Industry</option>
                                    <c:forEach items="${listC}" var="c">
                                        <option value="${c.categoryId}">${c.categoryName}</option>
                                    </c:forEach>                                                                             
                                </select>
                                <select name="sSalary" class="selectSearch">
                                    <option value="none">Choose Salary Grade</option>
                                    <option value="d1tr">Below 1000.000 vnd</option>
                                    <option value="1d5tr">1000.000->5000.000 vnd</option>
                                    <option value="5d8tr">5000.000->8000.000 vnd</option>
                                    <option value="8d10tr">8000.000->10.000.000 vnd</option>
                                    <option value="10d15tr">10.000.000->15.000.000 vnd</option>
                                    <option value="t15tr">Above 15.000.000 vnd</option>

                                </select>
                                <select name="sExp" class="selectSearch">
                                    <option value="none">Choose Year of Experience</option>
                                    <option value="0">None</option>
                                    <option value="1">1 year</option>
                                    <option value="2">2 years</option>
                                    <option value="3">3 years</option>
                                    <option value="4">4 years</option>
                                    <option value="5">5 years</option>
                                    <option value="6">Above 5 years</option>                                                      
                                </select>
                                <input type="submit" value="Search" name="sr" style="width: 100px;height: 30px;color: #0a81f7; margin-top: 5px;" />
                            </div>
                        </form>
                    </div>
                    <div CLASS="work1_mid">
                        <h1 style="color: red;font-size: 20px;">  ATTRACTABLE  WORKS </h4>
                            <br />
                            <br />
                            <div class="viec">                          
                                <c:if test="${not empty lisVa}">
                                    <display:table id="vacancy_table" name="lisVa"
                                                   pagesize="2" export="false" requestURI="SearchWork">
                                        <display:column class="row_text" property="vacancyTitle" title="Work name" href="DisplayVacancy" paramId="vId" paramProperty="vacancyId" style="width:300px;font-weight: bold;">
                                        </display:column>
                                        <display:column class="row_text" property="companyName" title="Company name"></display:column>
                                        <display:column class="row_text" property="workPlace"
                                                        title="Work place"></display:column>
                                        <display:column class="row_text" property="salary" title="Salary"></display:column>
                                        <display:column class="row_text" property="deadline" title="Deadline"></display:column>
                                        <display:column title="">
                                            <form action="DisplayVacancy" method="POST">
                                                <input type="hidden" name="vacancy" value="${vacancy_table.vacancyId}">
                                                <input type="hidden" value="${vacancy_table.workPlaceId}" name="workPlaceId">
                                                <input type="submit" class="viewVacancy" value=""/>
                                            </form>
                                        </display:column>
                                        <!-- paging -->
                                        <display:setProperty name="basic.empty.showtable" value="true" />
                                        <display:setProperty name="basic.msg.empty_list_row" value="" />
                                        <display:setProperty name="paging.banner.placement"
                                                             value="bottom" />
                                        <display:setProperty name="paging.banner.no_items_found"
                                                             value="" />
                                        <display:setProperty name="paging.banner.one_item_found"
                                                             value="" />
                                        <display:setProperty name="paging.banner.all_items_found"
                                                             value="" />
                                        <display:setProperty name="paging.banner.some_items_found"
                                                             value="" />
                                        <display:setProperty name="paging.banner.full"
                                                             value='</div><span class="ps" style="display:none;">{1}</span>
                                                             <span class="pagelinks">            
                                                             <a href="{1}"><img src="resources/images/fp.gif" title="First Page" alt="First Page" /></a> 
                                                             <a href="{2}"><img src="resources/images/pp.gif" title="Previous Page" alt="Previous Page" /></a> 
                                                             Page <input type="text" name="b" value="{5}" size="1" /> of <span class="nops">{6}</span>     
                                                             <a href="{3}"><img src="resources/images/np.gif" title="Next Page" alt="Next Page" /></a> 
                                                             <a href="{4}"><img src="resources/images/lp.gif" title="Last Page" alt="Last Page" /></a></span>' />

                                        <display:setProperty name="paging.banner.first"
                                                             value='</div><span class="ps" style="display:none;">{1}</span>
                                                             <span class="pagelinks">       
                                                             <img src="resources/images/fpg.gif" title="First Page" alt="First Page" /> 
                                                             <img src="resources/images/ppg.gif" title="Previous Page" alt="Previous Page" /> 
                                                             Page <input type="text" name="b" value="{5}" size="1" /> of <span class="nops">{6}</span>  
                                                             <a href="{3}"><img src="resources/images/np.gif" title="Next Page" alt="Next Page" /></a> 
                                                             <a href="{4}"><img src="resources/images/lp.gif" title="Last Page" alt="Last Page" /></a>
                                                             </span>' />

                                        <display:setProperty name="paging.banner.last"
                                                             value='</div>
                                                             <span class="ps" style="display:none;">{1}</span>
                                                             <span class="pagelinks">          
                                                             <a href="{1}"><img src="resources/images/fp.gif" title="First Page" alt="First Page" /></a> 
                                                             <a href="{2}"><img src="resources/images/pp.gif" title="Previous Page" alt="Previous Page" /></a> 
                                                             Page <input type="text" name="b" value="{5}" size="1" /> of <span class="nops">{6}</span>   
                                                             <img src="resources/images/npg.gif" title="Next Page" alt="Next Page" /> 
                                                             <img src="resources/images/lpg.gif" title="Last Page" alt="Last Page" />
                                                             </span>' />
                                        <display:setProperty name="paging.banner.onepage" value="</div>" />
                                    </display:table>
                                </c:if>
                            </div>
                    </div>
                    <div CLASS="work1_bot">   
                        <h5> Advertisement</h5>
                        <div class="quangcao">
                            <a href="#"><img src="resources/images/quangcao.gif" style="width: 200px" /></a>                       
                            <a href="#"><img src="resources/images/quangcao3.png" style="width: 200px;height: 240px" /></a>
                            <a href="#"><img src="resources/images/quangcao.png" style="width: 200px;height: 200px" /></a>
                        </div>
                    </div>
                </div>
            </div>

            <div id="footer">
                <h6>@copyright FPT Aptech</h6>
                <h6>Email: quangcao@c1104g.g1.vn</h6>
                <h6> Tel: 844 39748899 Ext:2222 </h6>
                <h6>Website: www.c1104g-g1.vn</h6>
            </div>

    </body>
</html>
